package ${config.rootPackage};

import com.gwssi.optimus.core.persistence.annotation.Column;
import com.gwssi.optimus.core.persistence.annotation.Entity;
import com.gwssi.optimus.core.persistence.annotation.Id;
import com.gwssi.optimus.core.persistence.annotation.Table;
import com.gwssi.optimus.core.persistence.dao.AbsDaoBussinessObject;
import java.math.BigDecimal;
import java.util.Calendar;

/**
 * @Description ${table.tableComment}表对应的BO类
 * @Date ${(.now)?string("yyyy-MM-dd")}
 */
@Entity
@Table(name = "${table.tableName}")
public class ${table.boPrefix}BO extends AbsDaoBussinessObject {

	public ${table.boPrefix}BO(){}

<#list columns! as column>
	<#if column.columnComment??>
	/**
	 * ${column.columnComment}
	 */
	</#if>
	private ${column.javaColumnType} ${column.camelColumnName};
</#list>

<#list columns! as column>
	<#if "${column.isCase!}"=="Y">
	@Id
	</#if>
	@Column(name = "${column.columnName}")
	public ${column.javaColumnType} get${column.upperCamelColumnName}() {
		return this.${column.camelColumnName};
	}
	public void set${column.upperCamelColumnName}(${column.javaColumnType} ${column.camelColumnName}) {
		this.${column.camelColumnName} = ${column.camelColumnName};
	}

</#list>
	@Override
	public String toString() {
		return "${table.boPrefix}BO{" +
			<#list columns! as column>
				"${column.camelColumnName}='" + ${column.camelColumnName} + "\'<#sep>,</#sep>" +
			</#list>
				'}';
	}
}
